package lily.com.app;

public class TaskDomain {
	
	interface TaskStatus{
		int NONE = 0;
		int DONE = 100;
		int NEW = 200;
	}
	
	interface TaskUIStatus{
		int NONE = 0;
		int FINISH = 1;
		int DELETE = 2;
	}
	
	private int tid; //taskid
	private String title; 
	private String text;
	private int status =  TaskStatus.NONE;
	private int uiStatus = TaskUIStatus.NONE;
	
	public TaskDomain(){}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	public int getUiStatus() {
		return uiStatus;
	}

	public void setUiStatus(int uiStatus) {
		this.uiStatus = uiStatus;
	}
	
	@Override
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("TaskDoman[");
		sb.append(tid);
		sb.append("]");
		sb.append("{");
		sb.append("title=");
		sb.append(title);
		sb.append(", ");
		sb.append("text=");
		sb.append(text);
		sb.append(", ");
		sb.append("status=");
		sb.append(status);
		sb.append("}");
		return sb.toString();
	}

}
